const HISTORY_KEY = 'geek-99-history'

export function getHistory(): string[] {
  return JSON.parse(localStorage.getItem(HISTORY_KEY) || '[]')
}

export function setHistory(historyList: string[]) {
  localStorage.setItem(HISTORY_KEY, JSON.stringify(historyList))
}

export function removeHistory() {
  localStorage.removeItem(HISTORY_KEY)
}
